package LambdaPro1;

public class PrintDemo {

	public static void main(String[] args) {
		
		PrintString s = new PrintString();
		usePrint(s::PrintUpper);
		
		
		usePrint((String a)->{
			String p = a.toUpperCase();
			System.out.println(p);
		});

	}
	public static void usePrint(Printer p) {
		p.PrintUpperCase("aaaaa");
	}

}
